
KERNEL_PATH = /home/tarena/ehome/kernel

obj-m += leds_drv.o

all:
	make -C $(KERNEL_PATH) M=$(PWD) modules
	cp *.ko ../../rootfs/home/drivers/
	arm-cortex_a9-linux-gnueabi-gcc test.c -o test
	cp test ../../rootfs/home/drivers/
clean:
	make -C $(KERNEL_PATH) M=$(PWD) clean

